package com.campus.counseling.model.query;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.campus.counseling.entity.SysArticle;
import lombok.Data;

@Data
public class ArticleQuery {
    private Integer pageNum = 1;
    private Integer pageSize = 10;
    private String keyword;
    private String category;
    private String status;
    private String visibleRoles;
    private String orderBy;

    public Page<SysArticle> toPage() {
        return new Page<>(pageNum, pageSize);
    }
}